import { get } from "../utils/requset";
export function listApi(data) {
    return get("/product", data)
}
export function delone(id,data){
    console.log({id})
    return get(`/delproduct?id=${id}`)
}
export function creatApi(name,price,num,data) {
    return get(`/addproduct?name=${name}&price=${price}&num=${num}`, data)
}
export function getOneById(id){
    return get(`/amendproduct?id=${id}`)
}
export function modifyOne(id,name,num,price){
    return get(`/disproduct?id=${id}&name=${name}&price=${price}&num=${num}`)
}